package com.amigo.online.provider.video.util;

public enum AgeEnum {
    CHINA("", "chinese"), ENGLISHT("", "english"), SPANISH("", "spanish"), PORTUGUESE("", "portuguese");

    private String language;
    private String columnName;

    private AgeEnum(String language, String columnName) {
        this.language = language;
        this.columnName = columnName;
    }

    public static String getColumnName(String language) {
        for (AgeEnum temp : AgeEnum.values()) {
            if (temp.language.equals(language)) {
                return temp.columnName;
            }
        }
        return null;
    }
}
